-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml.jinja
55 lines (49 loc) · 1.14 KB
/
pyproject.toml.jinja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[tool.poetry]
name = "{{ cookiecutter.project_slug }}"
version = "0.1.0"
description = ""
authors = ["one-zero-eight <https://t.me/one_zero_eight>"]
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = "^3.12"
authlib = "^1.3.2"
colorlog = "^6.8.2"
cryptography = "^43.0.1"
fastapi = "^0.115.0"
fastapi-swagger = "^0.2.3"
gunicorn = "^23.0.0"
httpx = "^0.27.2"
pre-commit = "^3.8.0"
pydantic = "^2.9.2"
ruff = "^0.6.7"
uvicorn = "^0.31.0"
{%- if cookiecutter.database == "mongo" %}
[tool.poetry.group.mongo.dependencies]
beanie = "^1.26.0"
motor = "^3.6.0"
{%- elif cookiecutter.database == "postgres" %}
[tool.poetry.group.sql.dependencies]
alembic = "^1.13.3"
asyncpg = "^0.29.0"
sqlalchemy = "^2.0.35"
{% endif %}
{%- if cookiecutter.login_and_password %}
[tool.poetry.group.passwords.dependencies]
bcrypt = "^4.2.1"
itsdangerous = "^2.2.0"
passlib = "^1.7.4"
{%- endif %}
[tool.ruff]
line-length = 120
lint.ignore = [
# wildcard imports are fine
"F403",
"F405",
"PLR"
]
lint.extend-select = ["I", "UP", "PL"]
target-version = "py312"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"